home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / g_man / cat3 / OpenGL-ftn / fglbindtexture.z / fglbindtexture
Text File  |  1998-10-20  |  9KB  |  133 lines

  1.  
  2.  
  3.  
  4. ffffggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeee((((3333GGGG))))             OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee             ffffggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeee((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ffffggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeee - bind a named texture to a texturing target
  10.  
  11.  
  12. FFFFOOOORRRRTTTTRRRRAAAANNNN SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      SUBROUTINE ffffggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeee( INTEGER*4 _t_a_r_g_e_t,
  14.                                 INTEGER*4 _t_e_x_t_u_r_e )
  15.  
  16.  
  17. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  18.      _t_a_r_g_e_t   Specifies the target to which the texture is bound.  Must be
  19.               either GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____1111DDDD or GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____2222DDDD.
  20.  
  21.      _t_e_x_t_u_r_e  Specifies the name of a texture.
  22.  
  23. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  24.      ffffggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeee lets you create or use a named texture. Calling
  25.      ffffggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeee with _t_a_r_g_e_t set to GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____1111DDDD or GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____2222DDDD and
  26.      _t_e_x_t_u_r_e set to the name of the newtexture binds the texture name to the
  27.      target. When a texture is bound to a target, the previous binding for
  28.      that target is automatically broken.
  29.  
  30.      Texture names are unsigned integers. The value zero is reserved to
  31.      represent the default texture for each texture target.  Texture names and
  32.      the corresponding texture contents are local to the shared display-list
  33.      space (see ffffggggllllXXXXCCCCrrrreeeeaaaatttteeeeCCCCoooonnnntttteeeexxxxtttt) of the current GL rendering context; two
  34.      rendering contexts share texture names only if they also share display
  35.      lists.
  36.  
  37.      You may use ffffggggllllGGGGeeeennnnTTTTeeeexxxxttttuuuurrrreeeessss to generate a set of new texture names.
  38.  
  39.      When a texture is first bound, it assumes the dimensionality of its
  40.      target:  A texture first bound to GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____1111DDDD becomes 1-dimensional and
  41.      a texture first bound to GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____2222DDDD becomes 2-dimensional. The state
  42.      of a 1-dimensional texture immediately after it is first bound is
  43.      equivalent to the state of the default GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____1111DDDD at GL
  44.      initialization, and similarly for 2-dimensional textures.
  45.  
  46.      While a texture is bound, GL operations on the target to which it is
  47.      bound affect the bound texture, and queries of the target to which it is
  48.      bound return state from the bound texture. If texture mapping of the
  49.      dimensionality of the target to which a texture is bound is active, the
  50.      bound texture is used.  In effect, the texture targets become aliases for
  51.      the textures currently bound to them, and the texture name zero refers to
  52.      the default textures that were bound to them at initialization.
  53.  
  54.      A texture binding created with ffffggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeee remains active until a
  55.      different texture is bound to the same target, or until the bound texture
  56.      is deleted with ffffggggllllDDDDeeeelllleeeetttteeeeTTTTeeeexxxxttttuuuurrrreeeessss.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ffffggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeee((((3333GGGG))))             OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee             ffffggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeee((((3333GGGG))))
  71.  
  72.  
  73.  
  74.      Once created, a named texture may be re-bound to the target of the
  75.      matching dimensionality as often as needed.  It is usually much faster to
  76.      use ffffggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeee to bind an existing named texture to one of the
  77.      texture targets than it is to reload the texture image using
  78.      ffffggggllllTTTTeeeexxxxIIIImmmmaaaaggggeeee1111DDDD or ffffggggllllTTTTeeeexxxxIIIImmmmaaaaggggeeee2222DDDD.  For additional control over performance,
  79.      use ffffggggllllPPPPrrrriiiioooorrrriiiittttiiiizzzzeeeeTTTTeeeexxxxttttuuuurrrreeeessss.
  80.  
  81.      ffffggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeee is included in display lists.
  82.  
  83. NNNNOOOOTTTTEEEESSSS
  84.      ffffggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeee is available only if the GL version is 1.1 or greater.
  85.  
  86. EEEERRRRRRRROOOORRRRSSSS
  87.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____EEEENNNNUUUUMMMM is generated if _t_a_r_g_e_t is not one of the allowable
  88.      values.
  89.  
  90.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if _t_e_x_t_u_r_e has a dimensionality which
  91.      doesn't match that of _t_a_r_g_e_t.
  92.  
  93.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ffffggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeee is executed between
  94.      the execution of ffffggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ffffggggllllEEEEnnnndddd.
  95.  
  96. AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD GGGGEEEETTTTSSSS
  97.      ffffggggllllGGGGeeeetttt with argument GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____1111DDDD____BBBBIIIINNNNDDDDIIIINNNNGGGG
  98.      ffffggggllllGGGGeeeetttt with argument GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____2222DDDD____BBBBIIIINNNNDDDDIIIINNNNGGGG
  99.  
  100.  
  101. MMMMAAAACCCCHHHHIIIINNNNEEEE DDDDEEEEPPPPEEEENNNNDDDDEEEENNNNCCCCIIIIEEEESSSS
  102.      RealityEngine, RealityEngine2, and VTX systems do not support texture
  103.      name sharing.  Texture names are always local to the rendering context
  104.      which was active at the time the names were created.
  105.  
  106.      The implementation on O2 systems uses a minimum of 64K bytes for every
  107.      texture object defined.
  108.  
  109.  
  110. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  111.      ffffggggllllAAAArrrreeeeTTTTeeeexxxxttttuuuurrrreeeessssRRRReeeessssiiiiddddeeeennnntttt, ffffggggllllDDDDeeeelllleeeetttteeeeTTTTeeeexxxxttttuuuurrrreeeessss, ffffggggllllGGGGeeeennnnTTTTeeeexxxxttttuuuurrrreeeessss, ffffggggllllGGGGeeeetttt,
  112.      ffffggggllllGGGGeeeettttTTTTeeeexxxxPPPPaaaarrrraaaammmmeeeetttteeeerrrr, ffffggggllllIIIIssssTTTTeeeexxxxttttuuuurrrreeee, ffffggggllllPPPPrrrriiiioooorrrriiiittttiiiizzzzeeeeTTTTeeeexxxxttttuuuurrrreeeessss, ffffggggllllTTTTeeeexxxxIIIImmmmaaaaggggeeee1111DDDD,
  113.      ffffggggllllTTTTeeeexxxxIIIImmmmaaaaggggeeee2222DDDD, ffffggggllllTTTTeeeexxxxPPPPaaaarrrraaaammmmeeeetttteeeerrrr
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.